#include<iostream>
#include<vector>
using namespace std;
int main()
{
	vector<int> v;
	int n = 0;
	while (cin >> n)
	{
		v.push_back(n);

		if(cin.get() == '\n')
			break;
	}
	for (auto e : v)
		cout << e << ' ';
	return 0;
}